package com.gla.market.constant;

/**
 * 这里规定了一些可全局使用的常量
 *
 */

public class Constants {

    //本地测试url
    //public static final String BASE_URL = "http://10.0.2.2:8083";
    //服务器后端url
    public static final String BASE_URL = "http://101.33.206.254:8083";
    //真机测试url
    //public static final String BASE_URL = "http://192.168.123.123:8083";

    /**
     * 查询用户购物车数据Url
     */
    public static final String GET_QUERY_CART_URL = "/shoppingcart/getByUserId";


    //登录Url
    public static final String LOGIN_URL = "/login/login";

    //注册Url
    public static final String REGISTER_URL = "/login/register";
    public static final String UPGRADE_VIP = "/vip/upgrade";

    //修改用户昵称和密码的Url
    public static final String MODIFY_USER_INFO_URL = "/update_personInfo?id=";
    public static final String MODIFY_USER_NAME_URL = "/update_personName?id=";

    //fyh请求url
    public static final String GET_FYH_SHOP_URL = "/shop";
    public static final String GET_FYH_ALLSHOP_URL = "/getAllShop";
    public static final String GET_FYH_ONESHOP_URL = "/getOneShop?shopid=";
    public static final String GET_FYH_CMBYSIDPOU_URL = "/getCommodityByShopIdAndPOU";

    public static String cmbysidpouIn(int shopid, int pou){
        return "?shopid=" + shopid + "&pou=" + pou;
    }
    public static final String GET_FYH_CMBYID_URL = "/getCommodityById?cmid=";
    public static final String GET_FYH_ALLCMBYPOU_URL = "/getAllCommodityByPOU?pou=";
    public static final String GET_FYH_ALLEVABYCMID_URL = "/getAllEvaluationByCMId?cmid=";
    public static final String GET_FYH_VEDIOBYCMID_URL = "/getVedioByCMId?cmid=";
    public static final String GET_FYH_ONECAR_URL = "/getOneCarByCMIdAndUId";
    public static String onecar(int cmid, int uid){
        return "?cmid=" + cmid + "&uid=" + uid;
    }
    public static final String GET_FYH_SETONECAR_URL = "/setOneCar";
    public static final String GET_FYH_UPONECAR_URL = "/upOneCar";
    public static String onecarid(int cid, int num){
        return "?cid=" + cid + "&num=" + num;
    }
    public static final String GET_FYH_DELONECAR_URL = "/delOneCar?cid=";
    public static final String GET_FYH_ONEVEDIO_URL = "/getOneVedio?vid=";
    public static final String GET_FYH_VEDIOBYTYPE_URL = "/getVedioByType";
    public static String typeid(int type, int id){
        return "?type=" + type + "&id=" + id;
    }
    public static final String GET_FYH_EVABYSPID_URL = "/getEvaBySPId?spid=";
    public static final String GET_FYH_SHOPNEAR_URL = "/getShopNear";
    public static String ulalo(double ula, double ulo){
        return "?ula=" + ula + "&ulo=" + ulo;
    }

    //搜索页面url 陈泽鑫添加
    public static final String GET_SEARCH_URL = "/Search";
    public static final String GET_NEAR_SHOP = "/getNearShop";
    public static final String GET_SEARCH_RESULT_SHOP = "/getSearchShop";
    public static final String GET_SEARCH_RESULT_PET = "/getSearchPet";
    public static final String GET_SEARCH_RESULT_PETGOODS = "/getSearchPetGoods";
    //视频url 陈泽鑫添加
    public static final String GET_VIDEO_CONTENT_URL = "/Video";
    public static final String GET_ALL_SHOP = "/videoAllShop";
    public static final String GET_PET = "/getPet";
    public static final String GET_PETGOODS = "/getPetGoods";
    //推荐算法请求后端
    public static final String GET_TUIJIAN_SEARCH = "/getSearchFine";


    /**
     * 订单相关
     */
    public static final String POST_INSERT_ORDER = "/order/insertOrder";
    public static final String GET_ORDER = "/order/getByUserId";
    public static final String GET_DELETE_ORDER = "/order/deleteOrder";
    public static final String GET_CHANGE_ORDER_STATE = "/order/updateState";
    public static final String GET_DEFALUT_ADDRESS = "/selectDefaultAddById";
    public static final String GET_USER_MONEY = "/wallet/getMoney";
    public static final String GET_UPDATE_USER_MONEY = "/wallet//update";

    /**
     * 从购物车中删除商品Url
     */
    public static final String POST_DELETE_URL = "/shoppingcart/deleteById";
    /**
     *  购物车商品数量增加
     */
    public static final String GET_ADD_SHOPPINGCART_URL = "/shoppingcart/insert";
    /**
     *  购物车商品数量减少
     */
    public static final String GET_REDUCE_SHOPPINGCART_URL = "/shoppingcart/reduceById";

    /**
     *  收货地址
     */
    public static final String ADD_Address_URL = "/addAddress";
    public static final String SELECT_Address_URL = "/selectAddress";
    public static final String SELECT_AddressById_URL = "/selectAddressById?user_id=";
    public static final String UPDATE_AddressById_URL = "/updateAddressById?id=";
    public static final String DELETE_AddressById_URL = "/deleteAddressById?id=";
    /**
     *  上传图片
     */
    public static final String UPLOAD_PICTURE_URL = "/upload";

    /**
     * 定义出现的随机数最大值
     */
    public static final int MAX = 26;

    /**
     * 定义出现的随机数最小值
     */
    public static final int MIN = 0;
}
